class User < ActiveRecord::Base
	validates :name, :email, :age, presence: true
	validates :name, length: { in: 2..50 }
	validates_numericality_of :age, greater_than: 10, less_than: 150
	has_many :comments, :dependent => :destroy
end
